﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WinHBM.Core.Net.Sockets.Cmd;

namespace WinHBM.Core.Net.Sockets
{
    public class InitSocketCmdMapper
    {
        public static void init()
        {
            CmdMapper cmdMapper = CmdMapper.Instance;
            cmdMapper.registType("test", "TestCmd");
            cmdMapper.registType(SocketCmd.CMD_LOG, "LogCmd");
            cmdMapper.registType(SocketCmd.CMD_LOGIN, "LoginCmd");
            cmdMapper.registType(SocketCmd.CMD_LOGOUT, "LogoutCmd");
            cmdMapper.registType(SocketCmd.CMD_GETUSERINFO, "GetUserInfoCmd");
            cmdMapper.registType(SocketCmd.CMD_GETBARCODE, "GetBarCodeCmd");
            cmdMapper.registType(SocketCmd.CMD_GETFLOWERRANK, "GetFlowerRankCmd");
            cmdMapper.registType(SocketCmd.CMD_NETWORKCONNECT, "NetWorkConnectCmd");
            
            //软键盘
            cmdMapper.registType(SocketCmd.CMD_SOFT_KB_OPEN, "SoftKeyBoardOpenCmd");
            cmdMapper.registType(SocketCmd.CMD_SOFT_KB_CLOSE, "SoftKeyBoardCloseCmd");
            //蓝牙相关
            cmdMapper.registType(SocketCmd.CMD_BLUETOOTH_BIND, "BluetoothBindCmd");
            cmdMapper.registType(SocketCmd.CMD_BLUETOOTH_UNBIND, "BluetoothUnBindCmd");
            cmdMapper.registType(SocketCmd.CMD_BLUETOOTH_CONNECT, "BluetoothConnectCmd");
            cmdMapper.registType(SocketCmd.CMD_BLUETOOTH_DISCONNECT, "BluetoothDisConnectCmd");
            cmdMapper.registType(SocketCmd.CMD_BLUETOOTH_DISCOVERY, "BluetoothDiscoveryCmd");
            cmdMapper.registType(SocketCmd.CMD_BLUETOOTH_DATA, "BluetoothDataCmd");
            cmdMapper.registType(SocketCmd.CMD_BLUETOOTH_ONLINE, "BluetoothOnlineCmd");
            cmdMapper.registType(SocketCmd.CMD_BLUETOOTH_OFFLINE, "BluetoothOfflineCmd");
            cmdMapper.registType(SocketCmd.CMD_BABY_COUNT, "BabyCountCmd");

            cmdMapper.registType(SocketCmd.CMD_TEST_LOGIN, "TestLoginCmd");
        }

    }
}
